﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BizzReports;

namespace BizzReports
{
    public partial class BizzReportTemplate : UserControl
    {
        protected DateTimePicker fromDate;
        protected DateTimePicker toDate;

        public BizzReportTemplate()
        {
            InitializeComponent();
        }

        public BizzReportTemplate(IBizzCommand sourceCmd)
        {
            InitializeComponent();
            labelTitle.Text = sourceCmd.Title;
            fromDate = new DateTimePicker();
            toDate = new DateTimePicker();
            
            fromDate.Width = 100;
            
            toDate.Width = 100;
            fromDate.Format = DateTimePickerFormat.Short;
            toDate.Format = DateTimePickerFormat.Short;
            ToolStripControlHost fromDateItem = new ToolStripControlHost(fromDate);
            ToolStripControlHost toDateItem = new ToolStripControlHost(toDate);
            toolStrip1.SuspendLayout();
            toolStrip1.Items.Add("Desde: ");
            toolStrip1.Items.Add(fromDateItem);
            toolStrip1.Items.Add(" ");
            toolStrip1.Items.Add("Hasta: ");
            toolStrip1.Items.Add(toDateItem);
            toolStrip1.ResumeLayout();
        }

        public virtual void tsRefresh_Click(object sender, EventArgs e)
        {

        }

       
        
    }
}
